{php define(MUI, true);}
{fx_template 'common/header'}
<body>
	{if strexists($msg, 'SQL Error:')}
	<div class="mui-content-padded">
		<div class="mui-message">
			<div class="mui-message-icon">
				<span class="mui-msg-error"></span>
			</div>
			<h4 class="title">系统错误</h4>
			<div class="mui-desc" style="color:#929292;">请及时联系管理员</div>
			<div class="mui-desc" style="color:#929292; margin-top:10px; text-align:left;">{$msg}</div>
			<div class="mui-button-area">
				<a href="javascript:;" onClick="history.go(-1);" class="mui-btn mui-btn-success mui-btn-block">确定</a>
			</div>
		</div>
	</div>
	{else}
    <div class="mui-content-padded">
        <div class="mui-message">
            <div class="mui-message-icon">
            {if $type=='' || $type=='success'}
            <span class="mui-msg-success"></span>
            {else}
            <span class="mui-msg-error"></span>
            {/if}
            </div>
            <h4 class="title">{$msg}</h4>
            <p class="mui-desc">{$desc}</p>
            <div class="mui-button-area">
            <!--a href="{$redirect}" class="mui-btn mui-btn-success mui-col-xs-5">返回</a -->
            {if $type=='' || $type=='success'}
                <a href="javascript:wx.closeWindow();" class="mui-btn mui-btn-success mui-btn-block">关闭页面</a>
            {else}
            	<a href="javascript:;" onClick="history.go(-1);" class="mui-btn mui-btn-success mui-btn-block">确定</a>
            {/if}
            </div>
        </div>
    </div>
	{/if}
</body>
</html>